package com.hy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//向所有注册中心注册
@EnableDiscoveryClient
//调用服务
@EnableFeignClients
//忽略数据源
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableTransactionManagement
public class HyFrontUserConsumerApplication {

    public static void main(String[] args) {

        SpringApplication.run(HyFrontUserConsumerApplication.class, args);

    }

}
